import javax.swing.JOptionPane;


public class Exercicio3 {
	public static void main(String args[]){
		int n, cont1=0, cont2=0, cont3=0, cont4=0;
		
		do{
			n=Integer.parseInt(JOptionPane.showInputDialog("Digite o valor:"));
			if(n>=1 && n<=25){
				cont1++;
			}
			else if(n>=26 && n<=50){
				cont2++;
			}
			else if(n>=51 && n<=75){
				cont3++;
			}
			else if(n>=76 && n<=100){
				cont4++;
			}
		}while(n!=0);
		
		System.out.println(cont1);
		System.out.println(cont2);
		System.out.println(cont3);
		System.out.println(cont4);
	}
}
